﻿using System.Configuration;
using System.Data;
using System.Windows;
using Microsoft.Extensions.DependencyInjection;
using QuickStart_Project_01.Base;
using QuickStart_Project_01.Chart;

namespace QuickStart_Project_01
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            ServiceCollection sc = new ServiceCollection();
            sc.AddSingleton<LineChartView>();
            sc.AddSingleton<BarChartView>();
            sc.AddSingleton<PieChartView>();
            sc.AddSingleton<LiveChartView>();
            IocHelper.SetContainer(sc.BuildServiceProvider());
        }
    }
}
